package com.ajview.common.core.exception.auth;

import com.ajview.common.core.domain.enums.ResultCodeEnum;
import com.ajview.common.core.exception.base.BaseReponseException;

/**
 * PROJECT_NAME: ajview-smile
 *
 * @DESCRIPTION: 登录模块根异常
 * @DATE 2022-12-26 下午 01:44
 * @Author zhangjunjie
 */
public class LoginModuleException extends BaseReponseException {

    private static final String MODULE = "user-login";

    public LoginModuleException(String messageCode, Object[] args, String defaultMessage) {
        super(MODULE, messageCode, args, null, defaultMessage, null);
    }

    public LoginModuleException(String messageCode, Object[] args, Integer code, String defaultMessage) {
        super(MODULE, messageCode, args, code, defaultMessage, null);
    }

    public LoginModuleException(String messageCode, Object[] args) {
        super(MODULE, messageCode, args);
    }

    public LoginModuleException(String messageCode) {
        super(MODULE, messageCode);
    }

    public LoginModuleException(String messageCode, Exception exception) {
        super(MODULE, messageCode, null, null, null, exception);
    }

    public LoginModuleException(ResultCodeEnum resultCodeEnum) {
        super(MODULE, resultCodeEnum);
    }
}
